package com.book.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.app.entity.Borrow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (Borrow)表数据库访问层
 *
 * @author wjy
 * @since 2021-09-22 08:48:13
 */
public interface BorrowDao extends BaseMapper<Borrow> {

    List<Borrow> findPager(@Param("page") Integer page,
                           @Param("limit") Integer limit,
                           @Param("bname")  String bname);

    int counter(@Param("bname")String bname);

    //统计热门借阅图书
    List<Borrow> getBorrowCounter();
}

